#pragma once

#include <vector>
#include "net_app.h"

class NetServer :
	public NetApp
{
public:
	NetServer(void);
	~NetServer(void);

	bool StartListenOn(WORD port);
	bool StartUdpRecvOn(WORD port);

private:
	void HandleAccept(
		const boost::system::error_code &error,	TcpSocket *socket);

private:
	tcp::acceptor m_acceptor;
};
